package com.ccp.dev.extend.controller;

import com.ccp.dev.core.basic.annotion.Action;
import com.ccp.dev.core.basic.consts.UrlConstants;
import com.ccp.dev.core.basic.internationalization.SysBaseController;
import com.ccp.dev.core.basic.model.SysAuditModelType;
import com.ccp.dev.core.util.RequestUtil;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;


/**
 * 扩展的各种选择器
 *
 * @author 创新中心-王明亮
 */
@Controller
@Action(ownermodel = SysAuditModelType.NULL)
@RequestMapping(UrlConstants.PROJECT_ROOT + "/extend/dialog")
public class ExtendDialogController extends SysBaseController {

    /**
     * 组织树是租户的用户单选选择器
     *
     * @return
     */
    @Action(description = "组织树是租户的用户单选选择器（）", exectype = "页面跳转日志")
    @RequestMapping(UrlConstants.VIEW_DISPATCH_PREFIX + "/singleSysUserDialogTenTree")
    public String viewSingleSysUserDialogTenTree(HttpServletRequest request, ModelMap modelMap) {
        String selectUserId = RequestUtil.getString(request, "selectUserId");
        String dataPrivacyLevel = RequestUtil.getString(request, "dataPrivacyLevel");
        modelMap.put("selectUserId", selectUserId);
        modelMap.put("dataPrivacyLevel", dataPrivacyLevel);
        return "dialog/extendSingleSysUserDialogTenTree";
    }

}
